summary refs log tree commit diff
path: root/app/about/[name]
diff options
context:
space:
mode:
Diffstat (limited to 'app/about/[name]')
-rw-r--r--app/about/[name]/page.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/about/[name]/page.tsx b/app/about/[name]/page.tsx
index 625af62..411a2f0 100644
--- a/app/about/[name]/page.tsx
+++ b/app/about/[name]/page.tsx
@@ -6,6 +6,11 @@ import InfoBar from "~/components/InfoBar";
 import styles from "~/styles/index.module.css"
 import system from "~/config/system.json"
 
+export async function generateStaticParams() {
+  const memberSlugs = system.members.map(member => member.name.toLowerCase())
+  return memberSlugs.map((name: string) => ({ name }))
+}
+
 export default function MemberPage({ params: { name } }) {
   const member = system.members.find(member => member.name.toLowerCase() === name)
 
@@ -28,7 +33,7 @@ export default function MemberPage({ params: { name } }) {
             ))}
           </div>
         )}
-      </main >
+      </main>
     </>
   )
 }